//创建store实列对象
import { observable, action } from 'mobx-miniprogram'

//导出store实例
export const store = observable({
	//tabbar索引值
	activeIndex: 0,
	updateActiveIndex: action(function (index) {
		this.activeIndex = index
	})
})